package cn.iocoder.yudao.module.system.enums.cp;


import cn.hutool.core.util.ArrayUtil;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum CpEnum {

    ZCSX(1, "wwf17fa7861c8b5977", 1000007),

    ZYSX(2,"wwfbee66d5b19df907", 1000014);

    private final Integer tenantId;

    private final String  corpId;

    private final Integer agentId;

    public static CpEnum valueOfTenantId(Integer tenantId) {
        return ArrayUtil.firstMatch(o -> o.getTenantId().equals(tenantId), values());
    }
}
